<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="shop_hd_header">
    <div class="shop_hd_header_logo">
        <h1 class="logo">
            <a href="/"><img src="render/images/logo.png" alt="ShopCZ"/></a>
            <span>ShopCZ</span>
        </h1>
    </div>
    <div class="shop_hd_header_search">
        <ul class="shop_hd_header_search_tab">
            <li id="search" class="current" value="0">商品</li>
            <li id="shop_search" value="1">店铺</li>
        </ul>
        <div class="clear"></div>
        <div class="search_form">
            <form method="post" action="">
                <div class="search_formstyle">
                    <input type="text" class="search_form_text" name="search_content" placeholder="搜索你想要的商品吧！"/>
                    <a href="#" type="hidden" class="hidden_search_text"></a>
                    <input type="button" class="search_form_sub" name="secrch_submit" value="" title="搜索"/>
                    <input type="hidden" class="search_form_sub_text" value="0" title="搜索字段"/>
                </div>
            </form>
        </div>
        <div class="clear"></div>
        <%--<div class="search_tag">
            <a href="javascript:void(0);">李宁</a>
            <a href="javascript:void(0);">耐克</a>
            <a href="javascript:void(0);">Kappa</a>
            <a href="javascript:void(0);">双肩包</a>
            <a href="javascript:void(0);">手提包</a>
        </div>--%>
    </div>
</div>
<div class="clear"></div>

<script type="text/javascript">
    $('.search_form_sub').click(function () {
        var url='/render/product/search?id=0&pc=1&search_key='+$('.search_form_text').val()+'&key='+$('.search_form_sub_text').val();
        console.log("url"+url);
        $('.hidden_search_text').attr('href',url);
        $('.hidden_search_text')[0].click();
    });
</script>